<template>
  <div>
    <el-form-item label="数据源地址" prop="url">
      <el-input v-model="form.url"></el-input>
    </el-form-item>
    <el-form-item label="请求方式" prop="method">
      <el-select v-model="form.method" placeholder="请选择">
        <el-option label="get" value="get"> </el-option>
        <el-option label="post" value="post"> </el-option>
      </el-select>
    </el-form-item>
    <el-form-item label="自动触发" prop="auto">
      <el-switch
        v-model="form.auto"
        active-color="#13ce66"
        inactive-color="#ff4949"
        active-value="1"
        inactive-value="0"
      >
      </el-switch>
    </el-form-item>
  </div>
</template>

<script>
export default {
  props: ["form"],
};
</script>

<style lang="scss"  scoped>
.el-select{
  width: 100%;
}

::v-deep .el-form-item__label{
  padding-bottom: 5px !important;
}
::v-deep .el-form-item{
    margin-bottom: 5px;
}
</style>